<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the V2TimSDKListener constructor from Class V2TimSDKListener from the V2TimSDKListener library, for the Dart programming language.">
  <title>V2TimSDKListener constructor - V2TimSDKListener - V2TimSDKListener library - Dart API</title>


  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">
  
  <link rel="stylesheet" href="../../static-assets/github.css?v1">
  <link rel="stylesheet" href="../../static-assets/styles.css?v1">
  <link rel="icon" href="../../static-assets/favicon.png?v1">

  
</head>


<body data-base-href="../../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
  <span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../../index.html">tencent_cloud_chat_sdk</a></li>
    <li><a href="../../enum_V2TimSDKListener/enum_V2TimSDKListener-library.html">enum&#47;V2TimSDKListener.dart</a></li>
    <li><a href="../../enum_V2TimSDKListener/V2TimSDKListener-class.html">V2TimSDKListener</a></li>
    <li class="self-crumb">V2TimSDKListener constructor</li>
  </ol>
  <div class="self-name">V2TimSDKListener</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
  <div class="toggle" id="theme-button" title="Toggle brightness">
    <label for="theme">
      <input type="checkbox" id="theme" value="light-theme">
      <span id="dark-theme-button" class="material-symbols-outlined">
        dark_mode
      </span>
      <span id="light-theme-button" class="material-symbols-outlined">
        light_mode
      </span>
    </label>
  </div>
</header>
<main>

  <div
      id="dartdoc-main-content"
      class="main-content"
      data-above-sidebar="enum_V2TimSDKListener&#47;V2TimSDKListener-class-sidebar.html"
      data-below-sidebar="">
      <div>
<h1><span class="kind-constructor">V2TimSDKListener</span> constructor 
</h1></div>

    <section class="multi-line-signature">
      
      <span class="name ">V2TimSDKListener</span>(<wbr><ol class="parameter-list"><li><span class="parameter" id="-param-onConnectFailed">{<span class="type-annotation"><a href="../../enum_callbacks/ErrorCallback.html">ErrorCallback</a>?</span> <span class="parameter-name">onConnectFailed</span>, </span></li>
<li><span class="parameter" id="-param-onConnectSuccess"><span class="type-annotation"><a href="../../enum_callbacks/VoidCallback.html">VoidCallback</a>?</span> <span class="parameter-name">onConnectSuccess</span>, </span></li>
<li><span class="parameter" id="-param-onConnecting"><span class="type-annotation"><a href="../../enum_callbacks/VoidCallback.html">VoidCallback</a>?</span> <span class="parameter-name">onConnecting</span>, </span></li>
<li><span class="parameter" id="-param-onKickedOffline"><span class="type-annotation"><a href="../../enum_callbacks/VoidCallback.html">VoidCallback</a>?</span> <span class="parameter-name">onKickedOffline</span>, </span></li>
<li><span class="parameter" id="-param-onSelfInfoUpdated"><span class="type-annotation"><a href="../../enum_callbacks/V2TimUserFullInfoCallback.html">V2TimUserFullInfoCallback</a>?</span> <span class="parameter-name">onSelfInfoUpdated</span>, </span></li>
<li><span class="parameter" id="-param-onUserSigExpired"><span class="type-annotation"><a href="../../enum_callbacks/VoidCallback.html">VoidCallback</a>?</span> <span class="parameter-name">onUserSigExpired</span>, </span></li>
<li><span class="parameter" id="-param-onUserStatusChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnUserStatusChanged.html">OnUserStatusChanged</a>?</span> <span class="parameter-name">onUserStatusChanged</span>, </span></li>
<li><span class="parameter" id="-param-onLog"><span class="type-annotation"><a href="../../enum_callbacks/OnLog.html">OnLog</a>?</span> <span class="parameter-name">onLog</span>, </span></li>
<li><span class="parameter" id="-param-onUserInfoChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnUserInfoChanged.html">OnUserInfoChanged</a>?</span> <span class="parameter-name">onUserInfoChanged</span>, </span></li>
<li><span class="parameter" id="-param-onAllReceiveMessageOptChanged"><span class="type-annotation"><a href="../../enum_callbacks/OnAllReceiveMessageOptChanged.html">OnAllReceiveMessageOptChanged</a>?</span> <span class="parameter-name">onAllReceiveMessageOptChanged</span>, </span></li>
<li><span class="parameter" id="-param-onExperimentalNotify"><span class="type-annotation"><a href="../../enum_callbacks/OnExperimentalNotify.html">OnExperimentalNotify</a>?</span> <span class="parameter-name">onExperimentalNotify</span>, </span></li>
<li><span class="parameter" id="-param-onUIKitEventEmited"><span class="type-annotation"><a href="../../enum_callbacks/OnUIKitEventEmited.html">OnUIKitEventEmited</a>?</span> <span class="parameter-name">onUIKitEventEmited</span>, </span></li>
<li><span class="parameter" id="-param-onPluginEventEmited"><span class="type-annotation"><a href="../../enum_callbacks/OnPluginEventEmited.html">OnPluginEventEmited</a>?</span> <span class="parameter-name">onPluginEventEmited</span>}</span></li>
</ol>)
    </section>

    


    
<section class="summary source-code" id="source">
  <h2><span>Implementation</span></h2>
  <pre class="language-dart"><code class="language-dart">V2TimSDKListener({
  ErrorCallback? onConnectFailed,
  VoidCallback? onConnectSuccess,
  VoidCallback? onConnecting,
  VoidCallback? onKickedOffline,
  V2TimUserFullInfoCallback? onSelfInfoUpdated,
  VoidCallback? onUserSigExpired,
  OnUserStatusChanged? onUserStatusChanged,
  OnLog? onLog,
  OnUserInfoChanged? onUserInfoChanged,
  OnAllReceiveMessageOptChanged? onAllReceiveMessageOptChanged,
  OnExperimentalNotify? onExperimentalNotify,
  OnUIKitEventEmited? onUIKitEventEmited,
  OnPluginEventEmited? onPluginEventEmited,
}) {
  if (onConnectFailed != null) {
    this.onConnectFailed = onConnectFailed;
  }
  if (onConnectSuccess != null) {
    this.onConnectSuccess = onConnectSuccess;
  }
  if (onConnecting != null) {
    this.onConnecting = onConnecting;
  }
  if (onKickedOffline != null) {
    this.onKickedOffline = onKickedOffline;
  }
  if (onSelfInfoUpdated != null) {
    this.onSelfInfoUpdated = onSelfInfoUpdated;
  }
  if (onUserSigExpired != null) {
    this.onUserSigExpired = onUserSigExpired;
  }
  if (onUserStatusChanged != null) {
    this.onUserStatusChanged = onUserStatusChanged;
  }
  if (onLog != null) {
    this.onLog = onLog;
  }
  if (onUserInfoChanged != null) {
    this.onUserInfoChanged = onUserInfoChanged;
  }
  if (onAllReceiveMessageOptChanged != null) {
    this.onAllReceiveMessageOptChanged = onAllReceiveMessageOptChanged;
  }
  if (onExperimentalNotify != null) {
    this.onExperimentalNotify = onExperimentalNotify;
  }
  if (onUIKitEventEmited != null) {
    this.onUIKitEventEmited = onUIKitEventEmited;
  }
  if (onPluginEventEmited != null) {
    this.onPluginEventEmited = onPluginEventEmited;
  }
}</code></pre>
</section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <!-- The search input and breadcrumbs below are only responsively visible at low resolutions. -->
<header id="header-search-sidebar" class="hidden-l">
  <form class="search-sidebar" role="search">
    <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
    <li><a href="../../index.html">tencent_cloud_chat_sdk</a></li>
    <li><a href="../../enum_V2TimSDKListener/enum_V2TimSDKListener-library.html">V2TimSDKListener</a></li>
    <li><a href="../../enum_V2TimSDKListener/V2TimSDKListener-class.html">V2TimSDKListener</a></li>
    <li class="self-crumb">V2TimSDKListener constructor</li>
</ol>


    <h5>V2TimSDKListener class</h5>
    <div id="dartdoc-sidebar-left-content"></div>
  </div><!--/.sidebar-offcanvas-left-->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    tencent_cloud_chat_sdk
      8.5.6864-beta.7
  </span>

  
</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>



</body>

</html>

